
<link rel="stylesheet" href="{{URL_PLUGIN_CLIENT}}css/detail.css">
<div id="mstoreOpenEditorButton"></div>
<script modulepath="mstoreDev/detail#callEditor">
!function(mstore){
if(!mstore){
var button = document.getElementById('mstoreOpenEditorButton');
button.style.display = 'block';
button.onclick = function(){
location.href += (location.href.indexOf('?') > 0 ? '&':'?') + '$edit=mstore';
};
return;
}
history.replaceState && history.replaceState(null, null, 'http://'+ location.host +'/{{projectId}}/{{storeId}}.html'+ location.search.replace(/&+$/, '').replace(/\?&+/, '?'));
mstore.refresh({
window: window,
document: document,
projectId: '{{projectId}}',
storeId: '{{storeId}}',
modules: {{STORE_MODULES}},
STORE_DATA: {{STORE_DATA}},
STORE_DEPS: {{STORE_DEPS}},
end:0
});
}(parent && parent.$$ && parent.$$.page);
</script>